/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.cvut.fel.omo.blog;

import java.util.ArrayList;
import java.util.Date;

/**
 *
 * @author jarda
 */
public class Post {
   public enum State{WorkedOn , Public, Outdated;};
   ArrayList<Comment> comments;
   String content;
   String Name;
   String Author;
   Date LastChanged;
   State State;
   
   /**
    * ALs
 */
public Post(String Author, String Name, String content){
    this.Author=Author;
    this.Name=Name;
    this.State= State.WorkedOn;
    this.content=content;
    

}   
public void registerToTopic(Topic topic){
    topic.addToTopic(this);

}
public void publishPost(){
    this.State=State.Public;
    

}   
}
